package com.admin.smoke;

import junit.framework.Assert;

import org.junit.Test;

public class ConsumerTestSuite extends BaseTest
{
	String username = "test@test.com";
	String password = "Password12";
	String product = "etnies Men's Digit Sneaker";
	String defaultQty = "1";
	
	@Test
	public void verifyConsumerCanAddProductToBasket()
	{
		HomePage homePage = new HomePage();
		homePage.gotoHomePage();
		
		homePage.gotoLogin();
		
		LoginPage  loginPage = new LoginPage();
		loginPage.login(username,password);
		homePage.gotoHomePage();
		homePage.selectItem(product);
		
		ProductPage productPage = new ProductPage();
		productPage.addproduct(defaultQty);
		homePage.gotoBasket();
		BasketPage basketPage = new BasketPage();
		Assert.assertTrue(basketPage.isProductAdded(product));
		
		
	}

}
